package tr.edu.metu.is.mega.client.core;

import java.util.List;

/**
 * Interface for generic dialog callback.
 * 
 * @param <T> type modifier
 */
public interface DialogCallback<T> {

    /**
     * Called when "ok" button is pressed in the dialog.
     * 
     * @param param parameter returned from dialog
     */
    void onOk(T param);

    /**
     * Called when "ok" button is pressed in the dialog.
     * 
     * @param params parameter returned from dialog
     */
    void onOk(List<T> params);

    /**
     * Called when "cancel" button is pressed in the dialog.
     */
    void onCancel();

}
